<!--
 * @Descripttion: HN-SaaS管理系统
 * @version: 1.0.0
 * @Author: 侯建军
 * @Date: 2020-09-09 15:34:15
 * @LastEditors: 侯建军
 * @LastEditTime: 2020-09-09 15:43:10
-->
<template>
  <div>
    <div class="addMedicals">
      <el-button type="primary" @click="addMedicals">添加病历</el-button>
    </div>
    <!-- 患者信息 -->
    <el-table :data="medicalsData" style="width: 100%">
      <el-table-column prop="name" label="姓名" sortable width="180"></el-table-column>
      <el-table-column prop="idcard" label="身份证号" :formatter="formatter"></el-table-column>
      <el-table-column prop="createDate" label="创建日期" sortable width="180"></el-table-column>
            <el-table-column prop="createDate" label="创建日期" sortable width="180"></el-table-column>
      <el-table-column type="expand">
        <template slot-scope="props">
          <el-form label-position="left" class="demo-table-expand">
            <el-form-item label="主诉">
              <span>{{ props.row.chiefComplaint }}</span>
            </el-form-item>
            <el-form-item label="现病史">
              <span>{{ props.row.shop }}</span>
            </el-form-item>
            <el-form-item label="既往史">
              <span>{{ props.row.id }}</span>
            </el-form-item>
            <el-form-item label="个人史">
              <span>{{ props.row.shopId }}</span>
            </el-form-item>
          </el-form>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
        medicalsData:[]
    };
  },
  methods:{
      addMedicals(){

      }
  }
};
</script>

<style lang="scss" scoped>
.addMedicals {
  text-align: left;
  margin-bottom: 10px;
}
</style>